class LoginPage:
    def __init__(self, page):
        self.page = page

    def login(self, username, password):
        self.page.goto("https://hi-dev.lingverse.co/login")

        self.page.fill("input[placeholder='请输入 11位手机号']", username)
        self.page.fill("input[placeholder='请输入 6 位验证码']", password)
        self.page.fill("input[placeholder='请输入 6 位验证码']", "101010")
        self.page.check("input.ant-checkbox-input")
        self.page.wait_for_selector("button:has-text('登录 / 注册'):not([disabled])")
        self.page.click("button:has-text('登录 / 注册')")
